#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL;
namespace Cephei.QL.Cashflows
{
     // <summary> 
	// ! This cash flow pays a predetermined amount at a given date.
	// </summary>
    [Guid ("5085257F-94E0-4036-87F7-5273C2CC417C"),ComVisible(true)]
	public interface IDividend : Cephei.QL.ICashFlow
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Double Amount(Double underlying);
        
		 Double Amount();
        
		 DateTime Date {get;}
    }

    // <summary> 
	// ! This cash flow pays a predetermined amount at a given date. Factory
	// </summary>
   	[ComVisible(true)]
    public interface IDividend_Factory // : Collection_Factory<IDividend, ICell<IDividend>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        /// <summary>
        /// Create a hybrid Vector of IDividend, with event notification of changes
        /// </summary>
        /// <returns>a new Vector&ltIDividend&gt</returns>
        IVector<IDividend> CreateVector();
        /// <summary>
        /// Create a hybrid Vector of ICell of IDividend, with event notification of changes
        /// </summary>
        /// <returns>a new ICell&ltIVector&ltI&ltIDividend&gt&gt&gt</returns>
        Generic.ICell<IVector<Generic.ICell<IDividend>>> CreateCellVector();
        IVector<IDividend> CreateVector(IEnumerable<IDividend> source);
        Generic.ICell<IVector<Generic.ICell<IDividend>>> CreateCellVector(IEnumerable<Generic.ICell<IDividend>> source);
    }
}

